#!/bin/bash

#ADOBE SYSTEMS INCORPORATED
#Copyright (C) 2003-2016 Adobe Systems Incorporated
#All rights reserved.

#NOTICE: Adobe permits you to use, modify, and distribute this file
#in accordance with the terms of the Adobe license agreement
#accompanying it. If you have received this file from a source other
#than Adobe, then your use, modification, or distribution of it
#requires the prior written permission of Adobe.


# TITLE:  SWID_Tag_Scan.sh Bash Script
# PURPOSE:  The intent of this script is to demonstrate one way to help differentiate the type of Acrobat DC install on a machine.
# DESCRIPTION: This bash script tests for the location of four possible SWID tag files used for Adobe Acrobat Pro DC/2015
# It uses an IF statement to test if the file is located in the directory
# "/Library/Application Support/regid.1986-12.com.adobe/".
# If the file exists the script will continue to test for:
#   - Encoded Serial Number format
#   - product_title
#   - version: major
#   - version: minor
#   - channel_type
#   - customer_type
#   - activation_status
# Then it will proceed to write out the resultant data found into a text file that contains the name of the file found in the text file name.
#
# Note:  The output file goes to the current user's desktop.
#
# QUESTIONS: scordero@adobe.com

#******************[machine_name]**********************************


echo machine_name: $HOSTNAME >> /$HOME/Desktop/SWID_Scan.txt 


#******************[spacer]**********************************
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> /$HOME/Desktop/SWID_Scan.txt ;\

#******************[ 12 serial_number]**********************************




if grep -e 9707 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo Serial Number: 9707 >> /$HOME/Desktop/SWID_Scan.txt ;\
fi

if grep -e 9101 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo Serial Number: 9101 >> /$HOME/Desktop/SWID_Scan.txt ;\
fi


if grep -e 9096 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo Serial Number: 9606 >> /$HOME/Desktop/SWID_Scan.txt ;\
fi


#******************[product_title]**********************************

if grep -e "<swid:product_title>Adobe Acrobat</swid:product_title>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo product_title: Adobe Acrobat >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[product_version]**********************************

if grep -e "<swid:product_version>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo product_version:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[name]**********************************


if grep -e "<swid:name>0.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo name: 0.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:name>1.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo name: 1.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[numeric]**********************************

if grep -e "<swid:numeric>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo numeric:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi






#******************[major]**********************************

if grep -e "<swid:major>0</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo major: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e "<swid:major>1</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo major: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

#******************[minor]**********************************

if grep -e "<swid:minor>1</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo minor: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:minor>0</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo minor: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[activation_status]**********************************


if grep -e "<swid:activation_status>activated</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo activation_status: activated >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>serialized</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo activation_status: serialized >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>trial</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo activation_status: trial >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:activation_status>unlicensed</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo activation_status: unlicensed >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[channel_type]**********************************

if grep -e "<swid:channel_type>VOLUME</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo channel_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>SUBSCRIPTION</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo channel_type: SUBSCRIPTION >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>UNKNOWN</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo channel_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:channel_type>RETAIL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo channel_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>TRIAL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo channel_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[customer_type]**********************************


if grep -e "<swid:customer_type>VOLUME</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo customer_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>RETAIL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo customer_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>UNKNOWN</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo customer_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:customer_type>TRIAL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"
then
echo customer_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi




#******************[swid_filename]**********************************

if test -e "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag"; 
then 
echo swid_filename: regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag  exists! >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo swid_filename: regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatCont-12-Mac-GM.swidtag  does not exists! >> /$HOME/Desktop/SWID_Scan.txt ;\

fi

#******************[spacer]**********************************
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> /$HOME/Desktop/SWID_Scan.txt ;\


#******************[CC serial_number]**********************************




if grep -e 9707 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9707 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e 9101 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9101 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e 9096 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9606 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[product_title]**********************************

if grep -e "<swid:product_title>Adobe Acrobat</swid:product_title>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo product_title: Adobe Acrobat >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e "<swid:product_title>Acrobat XI Pro</swid:product_title>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo product_title: Acrobat XI Pro >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

#******************[product_version]**********************************

if grep -e "<swid:product_version>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo product_version:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[name]**********************************


if grep -e "<swid:name>0.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo name: 0.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:name>1.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo name: 1.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[numeric]**********************************

if grep -e "<swid:numeric>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo numeric:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi






#******************[major]**********************************

if grep -e "<swid:major>0</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo major: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e "<swid:major>1</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo major: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

#******************[minor]**********************************

if grep -e "<swid:minor>1</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo minor: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:minor>0</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo minor: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[activation_status]**********************************


if grep -e "<swid:activation_status>activated</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo activation_status: activated >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>serialized</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo activation_status: serialized >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>trial</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo activation_status: trial >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:activation_status>unlicensed</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo activation_status: unlicensed >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[channel_type]**********************************

if grep -e "<swid:channel_type>VOLUME</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo channel_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>SUBSCRIPTION</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo channel_type: SUBSCRIPTION >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>UNKNOWN</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo channel_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:channel_type>RETAIL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo channel_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>TRIAL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo channel_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[customer_type]**********************************


if grep -e "<swid:customer_type>VOLUME</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo customer_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>RETAIL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo customer_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>UNKNOWN</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo customer_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:customer_type>TRIAL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo customer_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi




#******************[swid_filename]**********************************

if test -e "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"; 
then 
echo swid_filename: regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag  exists! >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo swid_filename: regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag  does not exists! >> /$HOME/Desktop/SWID_Scan.txt ;\

fi

#******************[spacer]**********************************
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> /$HOME/Desktop/SWID_Scan.txt ;\



#******************[12 serial_number]**********************************




if grep -e 9707 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9707 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e 9101 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9101 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e 9096 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9606 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[product_title]**********************************

if grep -e "<swid:product_title>Adobe Acrobat</swid:product_title>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo product_title: Adobe Acrobat >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[product_version]**********************************

if grep -e "<swid:product_version>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo product_version:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[name]**********************************


if grep -e "<swid:name>0.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo name: 0.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:name>1.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo name: 1.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[numeric]**********************************

if grep -e "<swid:numeric>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo numeric:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi






#******************[major]**********************************

if grep -e "<swid:major>0</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo major: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e "<swid:major>1</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo major: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

#******************[minor]**********************************

if grep -e "<swid:minor>1</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo minor: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:minor>0</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo minor: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[activation_status]**********************************


if grep -e "<swid:activation_status>activated</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo activation_status: activated >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>serialized</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo activation_status: serialized >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>trial</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo activation_status: trial >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:activation_status>unlicensed</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo activation_status: unlicensed >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[channel_type]**********************************

if grep -e "<swid:channel_type>VOLUME</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo channel_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>SUBSCRIPTION</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo channel_type: SUBSCRIPTION >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>UNKNOWN</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo channel_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:channel_type>RETAIL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo channel_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>TRIAL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo channel_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[customer_type]**********************************


if grep -e "<swid:customer_type>VOLUME</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo customer_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>RETAIL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo customer_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>UNKNOWN</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo customer_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\else
echo negative
fi



if grep -e "<swid:customer_type>TRIAL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"
then
echo customer_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi




#******************[swid_filename]**********************************

if test -e "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag"; 
then 
echo swid_filename: regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag  exists! >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo swid_filename: regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatETLA-12-Mac-GM-MUL.swidtag  does not exists! >> /$HOME/Desktop/SWID_Scan.txt ;\

fi

#******************[spacer]**********************************
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> /$HOME/Desktop/SWID_Scan.txt ;\



#******************[12 serial_number]**********************************




if grep -e 9707 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo Serial Number: 9707 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e 9101 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo Serial Number: 9101 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e 9096 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo Serial Number: 9606 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[product_title]**********************************

if grep -e "<swid:product_title>Adobe Acrobat</swid:product_title>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo product_title: Adobe Acrobat >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[product_version]**********************************

if grep -e "<swid:product_version>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo product_version:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[name]**********************************


if grep -e "<swid:name>0.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo name: 0.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:name>1.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo name: 1.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[numeric]**********************************

if grep -e "<swid:numeric>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo numeric:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi






#******************[major]**********************************

if grep -e "<swid:major>0</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo major: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e "<swid:major>1</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo major: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

#******************[minor]**********************************

if grep -e "<swid:minor>1</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo minor: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:minor>0</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo minor: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[activation_status]**********************************


if grep -e "<swid:activation_status>activated</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo activation_status: activated >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>serialized</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo activation_status: serialized >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>trial</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo activation_status: trial >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:activation_status>unlicensed</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo activation_status: unlicensed >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[channel_type]**********************************

if grep -e "<swid:channel_type>VOLUME</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo channel_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>SUBSCRIPTION</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo channel_type: SUBSCRIPTION >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>UNKNOWN</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo channel_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:channel_type>RETAIL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo channel_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>TRIAL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo channel_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[customer_type]**********************************


if grep -e "<swid:customer_type>VOLUME</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo customer_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>RETAIL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo customer_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>UNKNOWN</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo customer_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:customer_type>TRIAL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"
then
echo customer_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi




#******************[swid_filename]**********************************

if test -e "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag"; 
then 
echo swid_filename: regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag  exists! >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo swid_filename: regid.1986-12.com.adobe_V7{}AcrobatESR-12-Mac-GM-en_US.swidtag  does not exists! >> /$HOME/Desktop/SWID_Scan.txt ;\

fi

#******************[spacer]**********************************
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> /$HOME/Desktop/SWID_Scan.txt ;\





#******************[12 serial_number]**********************************




if grep -e 9707 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9707 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e 9101 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9101 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e 9096 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9606 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[product_title]**********************************

if grep -e "<swid:product_title>Adobe Acrobat</swid:product_title>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo product_title: Adobe Acrobat >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[product_version]**********************************

if grep -e "<swid:product_version>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo product_version:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[name]**********************************


if grep -e "<swid:name>0.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo name: 0.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:name>1.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo name: 1.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[numeric]**********************************

if grep -e "<swid:numeric>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo numeric:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi






#******************[major]**********************************

if grep -e "<swid:major>0</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo major: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e "<swid:major>1</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo major: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

#******************[minor]**********************************

if grep -e "<swid:minor>1</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo minor: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:minor>0</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo minor: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[activation_status]**********************************


if grep -e "<swid:activation_status>activated</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo activation_status: activated >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>serialized</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo activation_status: serialized >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>trial</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo activation_status: trial >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:activation_status>unlicensed</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo activation_status: unlicensed >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[channel_type]**********************************

if grep -e "<swid:channel_type>VOLUME</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo channel_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>SUBSCRIPTION</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo channel_type: SUBSCRIPTION >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>UNKNOWN</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo channel_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:channel_type>RETAIL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo channel_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>TRIAL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo channel_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[customer_type]**********************************


if grep -e "<swid:customer_type>VOLUME</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo customer_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>RETAIL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo customer_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>UNKNOWN</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo customer_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:customer_type>TRIAL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"
then
echo customer_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi




#******************[swid_filename]**********************************

if test -e "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag"; 
then 
echo swid_filename: regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag  exists! >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo swid_filename: regid.1986-12.com.adobe_V7{}AcrobatESR-20-Mac-GM-MUL.swidtag  does not exists! >> /$HOME/Desktop/SWID_Scan.txt ;\

fi

#******************[spacer]**********************************
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> /$HOME/Desktop/SWID_Scan.txt ;\



#******************[serial_number]**********************************




if grep -e 9707 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9707 >> /$HOME/Desktop/SWID_Scan.txt ;\
fi

if grep -e 9101 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9101 >> /$HOME/Desktop/SWID_Scan.txt ;\
fi


if grep -e 9096 "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo Serial Number: 9606 >> /$HOME/Desktop/SWID_Scan.txt ;\
fi


#******************[product_title]**********************************

if grep -e "<swid:product_title>Adobe Acrobat</swid:product_title>" "/Library/Application Support/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo product_title: Adobe Acrobat >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e "<swid:product_title>Acrobat XI Pro</swid:product_title>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V7{}CreativeCloudEnt-1.0-Mac-GM-MUL.swidtag"
then
echo product_title: Acrobat XI Pro >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

#******************[product_version]**********************************

if grep -e "<swid:product_version>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo product_version:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[name]**********************************


if grep -e "<swid:name>0.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo name: 0.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:name>1.0</swid:name>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo name: 1.0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[numeric]**********************************

if grep -e "<swid:numeric>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo numeric:  >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi






#******************[major]**********************************

if grep -e "<swid:major>0</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo major: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

if grep -e "<swid:major>1</swid:major>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo major: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi

#******************[minor]**********************************

if grep -e "<swid:minor>1</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo minor: 1 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:minor>0</swid:minor>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo minor: 0 >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



#******************[activation_status]**********************************


if grep -e "<swid:activation_status>activated</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo activation_status: activated >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>serialized</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo activation_status: serialized >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:activation_status>trial</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo activation_status: trial >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:activation_status>unlicensed</swid:activation_status>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo activation_status: unlicensed >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[channel_type]**********************************

if grep -e "<swid:channel_type>VOLUME</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo channel_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>SUBSCRIPTION</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo channel_type: SUBSCRIPTION >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>UNKNOWN</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo channel_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:channel_type>RETAIL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo channel_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:channel_type>TRIAL</swid:channel_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo channel_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


#******************[customer_type]**********************************


if grep -e "<swid:customer_type>VOLUME</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo customer_type: VOLUME >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>RETAIL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo customer_type: RETAIL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi


if grep -e "<swid:customer_type>UNKNOWN</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo customer_type: UNKNOWN >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi



if grep -e "<swid:customer_type>TRIAL</swid:customer_type>" "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag"
then
echo customer_type: TRIAL >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo negative
fi




#******************[swid_filename]**********************************

if test -e "/Library/Application Support/regid.1986-12.com.adobe/regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag";
then
echo swid_filename: regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag  exists! >> /$HOME/Desktop/SWID_Scan.txt ;\
else
echo swid_filename: regid.1986-12.com.adobe_V6{}AcrobatPro-AS2-Mac-GM-MUL.swidtag does not exists! >> /$HOME/Desktop/SWID_Scan.txt ;\

fi

#******************[spacer]**********************************
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> /$HOME/Desktop/SWID_Scan.txt ;\









